package com.shxy.cloudclassroom.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shxy.cloudclassroom.entity.pojo.Major;
import com.shxy.cloudclassroom.mapper.MajorMapper;
import com.shxy.cloudclassroom.service.MajorService;
import org.springframework.stereotype.Service;

@Service
// 专业服务实现类
public class MajorServiceImpl extends ServiceImpl<MajorMapper, Major> implements MajorService {
    @Override
    // 根据ID获取专业
    public Major getById(Integer id) {
        return super.getById(id);
    }
}